public class MonsterBoss
{
static int health = 112;
static int str = 3;
static int exp = 50;

public static void attackplayer()
	{
		System.out.println("The Massive beast slashes you!");
		Player.health -= str;
	}

public static void expdrop()
	{
		Player.exp += MonsterBoss.exp;
	}

public static void death()
	{
		System.out.println("The beast falls and the room starts shaking shakes only for the beast to collapses");
		expdrop();
		MonsterBoss.health = 112;
	}
public static void bossfight()
{
	do
	{
		Main.a = Main.input.nextInt();
				if(Main.x == 1)
				{
					PlayerBow.attackboss();
					if(health <= 0)
					{
						MonsterBoss.death();
						Main.a = 0;
					}
					
					else if(health > 0)
					{
						attackplayer();
					}
					
					if(Player.exp >= 50)
					{
						Main.levelup();
					}
					
				    if(PlayerBow.health <= 0)
					{
						Main.Gameover();
						break;
					}
					
				}
				if(Main.x == 2)
				{
					PlayerSword.attackboss();
					if(health <= 0)
					{
						MonsterBoss.death();
						Main.a = 0;
					}
					
					else if(health > 0)
					{
						MonsterBoss.attackplayer();
					}
					
					if(Player.exp >= 50)
					{
						Main.levelup();
					}
					
				    if(PlayerSword.health <= 0)
					{
						break;
					}
				}
	}while(Main.a == 1);
}

}
